#include<cstdio>
#include<iostream>
#include<cstring>
using namespace std;
int main(){
	char s[100]="I like food!  C++ programming!hgtt?fcdc.dc,as";
	int i=0;
	char c;
	while(s[i]!='\0'){
		if(s[i]!='\n'&&s[i]!=','&&s[i]!='.'&&s[i]!='?'&&s[i]!='!'){
			c=s[i];
			cout<<s[i];
	}
		else if(c!=' '){
			c=' ';
		cout<<' ';
	}
		i++;
	}
	return 0;
}
